package com.supermarket.manage.common.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 角色权限关系实体类
 *
 * @author: Faxon
 * @data: 2020/3/1
 */
@Data
@ApiModel(value = "RolePermission：角色权限关系实体类")
@TableName("tb_role_permission")
public class RolePermission implements Serializable {

    private static final long serialVersionUID = -5104400670902575524L;
    /**
     * 主键id
     */
    @ApiModelProperty(value = "主键id")
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 角色 ID
     */
    @ApiModelProperty(value = "角色 ID")
    private Long roleId;

    /**
     * 权限 ID
     */
    @ApiModelProperty(value = "权限 ID")
    private Long permissionId;
}
